@import '~antd/es/style/variable.less';

.menu-collapsed-toggle-button {
  display: inline-block;
  width: 20px;
  height: 48px;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  &:hover {
    color: @primary-color;
  }
  &.menu-collapsed-toggle-fill-background {
    color: rgba(255, 255, 255, 0.85);
  }
}
.system-header-right-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 394px;
  overflow: hidden;
  text-align: right;
  @media screen and (max-width: @screen-sm-max) {
    position: absolute;
    top: 0;
    right: 16px;
    width: 138px;
  }
  @media screen and (max-width: @screen-xs-max) {
    left: 96px;
    width: unset;
  }
  .system-header-right-container-menu-search {
    display: none;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > span {
      vertical-align: middle;
      &:hover {
        color: @primary-color;
      }
    }
    &:global(.opened) {
      background: @background-color-base;
    }
    @media screen and (min-width: @screen-md) {
      display: flex;
    }
  }
  .system-header-right-container-avatar {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > span {
      vertical-align: middle;
    }
    &:hover {
      background: @background-color-base;
    }
    &:global(.opened) {
      background: @background-color-base;
    }
    .system-header-right-container-avatar-img {
      vertical-align: top;
    }
    .system-header-right-container-avatar-text {
      display: none;
      max-width: 82px;
      margin-left: 8px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      @media screen and (min-width: @screen-sm) {
        display: unset;
      }
    }
  }
  .system-header-right-container-avatar-dropdown-menu {
    :global(.anticon) {
      margin-right: 8px;
    }
    :global(.ant-dropdown-menu-item) {
      min-width: 160px;
    }
  }
  &.system-header-right-container-fill-background {
    .system-header-right-container-menu-search > span {
      color: rgba(255, 255, 255, 0.85);
    }
    .system-header-right-container-avatar {
      &:hover {
        background: @menu-dark-inline-submenu-bg;
      }
      .system-header-right-container-avatar-text {
        color: rgba(255, 255, 255, 0.85);
      }
    }
  }
}

.system-header-right-container-menu-search-active-text {
  color: @primary-color;
}
